<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="<%=path %>/static/css/new-list.css">
<link rel="stylesheet" type="text/css" href="<%=path %>/static/css/table-list.css">
</head><body><div class="big-box">
    <div class="chaxuntj-list-title">
        <div class="message-box">
            <div class="chaxun-message">
                <div class="chaxun-tiaojian">
                    <ul>
                        <li>
                            <span>耗材名称：</span>
                            <div class="input-box-new" style="width: 220px;">
                                <input type="text" id="chaxtj-hclb-mingcheng" placeholder="请输入耗材名称查询">
                            </div>
                        </li>
                         <li>
                             <span>日期：</span>
                             <div class="input-box begin-time input-group date" id="ylhc-datetimepicker1">
	                    		<input id="ylhc-kaishjsj" class="form-control" type="text">
	                    		<span class="input-group-addon cxtj-timepicker-icon">
	                        		<span class="glyphicon glyphicon-calendar"></span>
	                    		</span>
	                		</div>
                             <span>-</span>
                             <div class="input-box end-time input-group date" id="ylhc-datetimepicker2">
                                 <input id="ylhc-jieshusj" class=" form-control" type="text">
                                 <span class="input-group-addon cxtj-timepicker-icon">
	                        		<span class="glyphicon glyphicon-calendar"></span>
	                   		 	 </span>
                             </div>
                         </li>
                    </ul>
                </div>
                <div class="button-box-new">
                    <button class="button" id="chaxtj-hclb-chaxunbtn"><span>查询</span></button>
                    <div class="button button1" id="chaxtj-hclb-chongzhibtn"><span>重置</span></div>
                </div>
            </div>
            <div class="clear"></div>
        </div>
        <div class="menu-tiaoj ">
            <div class="xuanze-tiaoj tongjifs ylhc-clickcontroller-div">
            	<input type="hidden" id="chaxtj-hclb-lxcanshu" class="ylhc-clickcontroller-input" value="1">
                <span>统计方式：</span>
                <ul>
                    <li class="xuanzong left-border" id="lx-haocaimx" value="1">按销售明细</li>
                    <li id="lx-haocaihz" value="2">按耗材汇总</li>
                </ul>
            </div>
            <div class="xuanze-tiaoj laiyuan ylhc-clickcontroller-div">
            	<input type="hidden" id="chaxtj-hclb-ywrkcanshu" class="ylhc-clickcontroller-input" value="0">
                <span>来源：</span>
                <ul>
                	<li class="xuanzong left-border" id="yeulx-quanbu" value="0">全部</li>
                    <li id="yeulx-changguimz" value="3">常规门诊</li>
                    <li id="yeulx-shouyao" value="2">售药</li>
                    <li value="4" id="yewulx-tiaozhengck">调整出库</li> 
                    
                </ul>
            </div>
            <div class="clear"></div>
        </div>
        <div class="clear"></div>
    </div>
    <div id="chaxtj-hclb-img"></div>
    <div class="list-content">
    	<!-- 按销售明细查询列表 -->
        <div class="table-list " style="display:none;" id="chaxtj-haocaimxlbnr">
            <table width="100%" cellpadding="0" border="0" cellspacing="0">
                <thead>
                <tr>
                    <th width="5%">序号</th>
                    <th width="20%" class="left">耗材名称</th>
                    <th width="15%">规格</th>
                    <th width="17%" class="left">厂商</th>
                    <th width="10%">销售日期</th>
                    <th width="10%">来源</th>
                    <th width="10%">销售数量</th>
                    <th width="13%" class="right">销售金额（元）</th>
                </tr>
                </thead>
                <tbody id="tb-haocaimx">
                </tbody>
            </table>
            <div id="pagination-fenyylhcmx"></div>
        </div>
        <!-- 按耗材汇总查询列表 -->
        <div class="table-list" style="display:none;" id="chaxtj-haocaihzlbnr">
            <table width="100%" cellpadding="0" border="0" cellspacing="0">
                <thead>
                <tr>
                    <th width="5%">序号</th>
                    <th width="20%" class="left">耗材名称</th>
                    <th width="15%">规格</th>
                    <th width="20%" class="left">厂商</th>
                    <th width="12%">来源</th>
                    <th width="13%">数量</th>
                    <th width="15%" class="right">销售金额（元）</th>
                </tr>
                </thead>
                <tbody id="tb-haocaihz">
                </tbody>
            </table>
            <div id="pagination-fenyylhchz"></div>
        </div>
    </div>
</div>
        <script src="<%=path %>/static/js/chaxtj-ylhc.js"></script>
        <script>
        $(function(){
        myDateTimePicker($("#ylhc-datetimepicker1"),$("#ylhc-datetimepicker2"));
		 var mrkaishisj=$('#ylhc-kaishjsj').val();
         var mrjieshusj=$('#ylhc-jieshusj').val();
		 getShijian(mrkaishisj,mrjieshusj);
        });
        </script></body></html>